#include "servermanager.h"

namespace proto {

uint32_t PRegisterServer::GetUri() {
	return URI;
}

bool PRegisterServer::Pack(pack::Writer& writer) {
	writer<<server_type;
}

bool PRegisterServer::UnPack(pack::Reader& reader) {
	reader>>server_type;
}

std::string PRegisterServer::Dump() {

}

uint32_t RRegisterServer::GetUri() {
	return URI;
}

bool RRegisterServer::Pack(pack::Writer& writer) {
	writer<<is_success<<ip<<port<<server_id;
}

bool RRegisterServer::UnPack(pack::Reader& reader) {
	reader>>is_success>>ip>>port>>server_id;
}

std::string RRegisterServer::Dump() {

}

}
